package com.example.springboottest.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class ShowController {
//    @GetMapping("/{showHtml}")
//    public String showLogin(@PathVariable("showHtml") String showHtml){
//
//        return showHtml + ".html";
//    }
    @GetMapping("/login")
    public String showLogin(Model model){
        model.addAttribute("msg","哈哈");
        return "/login.html";
    }
}
